<div class="module-gop">
    <ol class="breadcrumb fn-clearfix">
        <li>市场监控</li>
        <li>{{vm.type.toUpperCase()}}</li>
        <li>Deal 成交纪录</li>
    </ol>
    <div class="screen-down">
        <input type="text" class="form-control " placeholder="按类别搜索信息"
               ng-model="keyWordText">
        <select class="form-control" ng-model="keyWord">
            <option value="buyTid">买单</option>
            <option value="buyUid">买家uid</option>
            <option value="sellTid">卖单</option>
            <option value="sellUid">卖家uid</option>
        </select>
        <button type="submit" class="btn btn-primary" ng-click="vm.fetchList()">搜索</button>
    </div>
    <div class="ui-box">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <th>价格</th>
                <th>数量</th>
                <th>买单</th>
                <th>买家uid</th>
                <!--<th>买家类型</th>-->
                <th>卖单</th>
                <th>卖家uid</th>
                <!--<th>卖家类型</th>-->
                <th>时间</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in vm.list" ng-if="vm.isLoading === false && vm.list.length > 0">
                <td>{{item.price}}</td>
                <td>{{item.num}}</td>
                <td>{{item.buyTradeTransferOrderNo}}</td>
                <td>{{item.buyUid}}</td>
                <!--<td>{{item.buyUserType}}</td>-->
                <td>{{item.sellTradeTransferOrderNo}}</td>
                <td>{{item.sellUid}}</td>
                <!--<td>{{item.sellUserType}}</td>-->
                <td>{{$root.moment(item.createTime).utc().utcOffset($root.ZONE).format('YYYY-MM-DD HH:mm:ss')}}</td>
            </tr>
            <tr class="ui-no-data" ng-if="vm.isLoading === false && (vm.list.length === 0||vm.list===null)">
                <td colspan="12">暂无数据</td>
            </tr>
            <tr class="ui-loading" ng-if="vm.isLoading === true">
                <td colspan="12">正在加载，请稍候...</td>
            </tr>
            </tbody>
        </table>

        <div class="ui-pager-box" v-if="vm.pageNum > 0">
            <ul uib-pagination
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                total-items="vm.totalNum"
                ng-model="vm.condition.pageNo"
                max-size="5"
                items-per-page="vm.pageSize || 10"
                align="right"
                class="pagination"
                boundary-links="true"
                ng-change="vm.pageChanged()"
                rotate="false"></ul>
        </div>
    </div>
</div>
